/* 初始化样式
------------------------------- */
* {
  box-sizing: border-box;
  outline: none !important;
}

p,
img,
dl,
dt,
dd,
ul,
ol,
li,
table,
thead,
tbody,
tr,
td,
th {
  padding: 0;
  margin: 0;
}

html,
body,
#app {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background-color: #f8f8f8;
  font-size: 14px;
  overflow: hidden;
  position: relative;
}

a {
  text-decoration: none;
}

/*正常的未被访问过的链接*/
a:link {
  text-decoration: none;
}

/*已经访问过的链接*/
a:visited {
  text-decoration: none;
}

/*鼠标划过(停留)的链接*/
a:hover {
  text-decoration: none;
}

/* 正在点击的链接，鼠标在元素上按下还没有松开*/
a:active {
  text-decoration: none;
}

/* 获得焦点的时候 鼠标松开时显示的颜色*/
a:focus {
  text-decoration: none;
}

/* 主布局样式
------------------------------- */
.layout-container {
  width: 100%;
  height: 100%;

  .layout-aside {
    background: var(--bg-menuBar);
    box-shadow: 2px 0 6px rgb(0 21 41 / 1%);
    height: inherit;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden !important;

    .el-scrollbar__view {
      overflow: hidden;
    }
  }

  .layout-header {
    padding: 0 !important;
  }

  .layout-main {
    padding: 0 !important;
    overflow: hidden;
    width: 100%;
    background-color: #f8f8f8;
  }

  .el-scrollbar {
    width: 100%;
  }

  .layout-view-bg-white {
    background: white;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    border: 1px solid #ebeef5;
  }

  .layout-el-aside-br-color {
    border-right: 1px solid rgb(238, 238, 238);
  }

  .layout-aside-width-default {
    width: 220px !important;
    transition: width 0.3s ease;
  }

  .layout-aside-width64 {
    width: 64px !important;
    transition: width 0.3s ease;
  }

  .layout-aside-width1 {
    width: 1px !important;
    transition: width 0.3s ease;
  }

  .layout-scrollbar {
    @extend .el-scrollbar;
    padding: 15px;
  }

  .layout-mian-height-50 {
    height: calc(100vh - 50px);
  }

  .layout-columns-warp {
    flex: 1;
    display: flex;
    overflow: hidden;
  }

  .layout-hide {
    display: none;
  }
}

/* element plus 全局样式
------------------------------- */
.layout-breadcrumb-seting {
  .el-drawer__header {
    padding: 0 15px !important;
    height: 50px;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    border-bottom: 1px solid rgb(230, 230, 230);
  }

  .el-divider {
    background-color: rgb(230, 230, 230);
  }
}

/* nprogress 进度条跟随主题颜色
------------------------------- */
#nprogress {
  .bar {
    background: var(--color-primary) !important;
    z-index: 9999999 !important;
  }
}

//蒙层
.mask:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 5px;
  background-color: #eee;
  opacity: 0.1;
  cursor: pointer;
}

.global-btn-new.el-button {
  font-size: 14px;
  color: #fff;
  background-color: #62c4ee;
  border-radius: 3px;
}

/* flex 弹性布局
------------------------------- */
.flex {
  display: flex;
}

.flex-c {
  display: flex;
  align-items: center;
}

.flex-c-sb {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-auto {
  flex: 1;
}

.flex-center {
  @extend .flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
}

.flex-margin {
  margin: auto;
}

.flex-warp {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  margin: 0 -5px;

  .flex-warp-item {
    padding: 5px;

    .flex-warp-item-box {
      width: 100%;
      height: 100%;
    }
  }
}

/* 大屏看板块级公共样式
------------------------------- */
.custom-board-item {
  flex: 1;
  width: 100%;
  padding: 19px;
  background: rgba(12, 53, 70, 0.53);
  border: 1px solid #14637d;
  position: relative;
  .border-title {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    height: 21px;
    line-height: 21px;
    margin-bottom: 4px;
    font-family: Source Han Sans CN;
  }
  .border-contant {
    height: calc(100% - 25px);
    .echart {
      width: 100%;
      height: 100%;
    }
  }
  &:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    // background: url('../assets/images/board-header.png');
    background-size: 100% 100%;
  }
}
.custom-board-item + .custom-board-item {
  margin-top: 20px;
}

/* 宽高 100%
------------------------------- */
.w100 {
  width: 100% !important;
}

.h100 {
  height: 100% !important;
}

.vh100 {
  height: 100vh !important;
}

.max100vh {
  max-height: 100vh !important;
}

.min100vh {
  min-height: 100vh !important;
}

/* 颜色值
------------------------------- */
.color-primary {
  color: var(--color-primary);
}

.color-success {
  color: var(--color-success);
}

.color-warning {
  color: var(--color-warning);
}

.color-danger {
  color: var(--color-danger);
}

.color-info {
  color: var(--color-info);
}

/* 字体大小全局样式
------------------------------- */
@for $i from 10 through 32 {
  .font#{$i} {
    font-size: #{$i}px !important;
  }
}

/* 外边距、内边距全局样式
------------------------------- */
@for $i from 1 through 35 {
  .mt#{$i} {
    margin-top: #{$i}px !important;
  }
  .mr#{$i} {
    margin-right: #{$i}px !important;
  }
  .mb#{$i} {
    margin-bottom: #{$i}px !important;
  }
  .ml#{$i} {
    margin-left: #{$i}px !important;
  }
  .p#{$i} {
    padding: #{$i}px;
  }
  .pt#{$i} {
    padding-top: #{$i}px !important;
  }
  .pr#{$i} {
    padding-right: #{$i}px !important;
  }
  .pb#{$i} {
    padding-bottom: #{$i}px !important;
  }
  .pl#{$i} {
    padding-left: #{$i}px !important;
  }
}

.upload-Appendix {
  font-size: 14px;
}
